package com.wz.service;

import com.wz.dao.DepartmentMapper;
import com.wz.pojo.Department;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DepartmentServiceImpl implements DepartmentService{

    @Autowired
    DepartmentMapper departmentMapper;

/**查询部门*/
    @Override
    public List<Department> AllDepartment() {
        return departmentMapper.AllDepartment();
    }

/**添加部门*/
    @Override
    public int addDept(Department department) {
        return departmentMapper.addDept(department);
    }

}
